<?php

// Menu
define("EW_MENUBAR_CLASSNAME", "MenuBarVertical", TRUE);
define("EW_MENUBAR_SUBMENU_CLASSNAME", "MenuBarItemSubmenu", TRUE);
?>
<?php

// MenuItem Adding event
function MenuItem_Adding(&$Item) {
    //var_dump($Item);
    // Return FALSE if menu item not allowed
    return TRUE;
}
?>
<!-- Begin Main Menu -->
<div class="phpmaker">
<?php

// Generate all menu items
$RootMenu = new cMenu("RootMenu");
$RootMenu->IsRoot = TRUE;
$RootMenu->AddMenuItem(47, $Language->MenuPhrase("47", "MenuText"), "", -1, "", True);
$RootMenu->AddMenuItem(37, $Language->MenuPhrase("37", "MenuText"), "psacar_car_typelist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(38, $Language->MenuPhrase("38", "MenuText"), "psacar_drivetrainlist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(39, $Language->MenuPhrase("39", "MenuText"), "psacar_industrylist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(42, $Language->MenuPhrase("42", "MenuText"), "psacar_member_typelist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(44, $Language->MenuPhrase("44", "MenuText"), "psacar_transmissionlist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(35, $Language->MenuPhrase("35", "MenuText"), "psacar_fuellist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(33, $Language->MenuPhrase("33", "MenuText"), "psacar_occupationlist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(12, $Language->MenuPhrase("12", "MenuText"), "psacar_news_categorylist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(5, $Language->MenuPhrase("5", "MenuText"), "psacar_locationlist.php", 47, "", IsLoggedIn());
//$RootMenu->AddMenuItem(49, $Language->MenuPhrase("49", "MenuText"), "psacar_mileagelist.php", 47, "", IsLoggedIn());
//$RootMenu->AddMenuItem(50, $Language->MenuPhrase("50", "MenuText"), "psacar_doorcountlist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(48, $Language->MenuPhrase("48", "MenuText"), "psacar_color_categorylist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(25, $Language->MenuPhrase("25", "MenuText"), "psacar_colorlist.php", 48, "", IsLoggedIn());
//$RootMenu->AddMenuItem(52, $Language->MenuPhrase("52", "MenuText"), "psacar_yearlist.php", 47, "", IsLoggedIn());
$RootMenu->AddMenuItem(1, $Language->MenuPhrase("1", "MenuText"), "psacar_carlist.php", -1, "", IsLoggedIn());
//$RootMenu->AddMenuItem(16, $Language->MenuPhrase("16", "MenuText"), "psacar_serieslist.php", 1, "", IsLoggedIn());
$RootMenu->AddMenuItem(7, $Language->MenuPhrase("7", "MenuText"), "psacar_makelist.php", 1, "", IsLoggedIn());
$RootMenu->AddMenuItem(10, $Language->MenuPhrase("10", "MenuText"), "psacar_modellist.php", 1, "", IsLoggedIn());
$RootMenu->AddMenuItem(2, $Language->MenuPhrase("2", "MenuText"), "psacar_categorylist.php", 1, "", IsLoggedIn());
$RootMenu->AddMenuItem(36, $Language->MenuPhrase("36", "MenuText"), "psacar_car_imagelist.php", 1, "", IsLoggedIn());
$RootMenu->AddMenuItem(9, $Language->MenuPhrase("9", "MenuText"), "psacar_memberlist.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(40, $Language->MenuPhrase("40", "MenuText"), "psacar_member_partlist.php", 9, "", IsLoggedIn());
$RootMenu->AddMenuItem(41, $Language->MenuPhrase("41", "MenuText"), "psacar_member_servicelist.php", 9, "", IsLoggedIn());
$RootMenu->AddMenuItem(43, $Language->MenuPhrase("43", "MenuText"), "psacar_partlist.php", 9, "", IsLoggedIn());
$RootMenu->AddMenuItem(17, $Language->MenuPhrase("17", "MenuText"), "psacar_servicelist.php", 9, "", IsLoggedIn());
//$RootMenu->AddMenuItem(4, $Language->MenuPhrase("4", "MenuText"), "psacar_inventorylist.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(11, $Language->MenuPhrase("11", "MenuText"), "psacar_newslist.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(13, $Language->MenuPhrase("13", "MenuText"), "psacar_pagelist.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(53, $Language->MenuPhrase("53", "MenuText"), "psacar_gas_pricelist.php", -1, "", IsLoggedIn());
//$RootMenu->AddMenuItem(8, $Language->MenuPhrase("8", "MenuText"), "psacar_medialist.php", -1, "", IsLoggedIn());
//$RootMenu->AddMenuItem(6, $Language->MenuPhrase("6", "MenuText"), "psacar_loglist.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(19, $Language->MenuPhrase("19", "MenuText"), "psacar_userlist.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(27, $Language->MenuPhrase("27", "MenuText"), "psacar_trackinglist.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(-1, $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(-1, $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) <> "login.php");
$RootMenu->Render();
?>
</div>
<!-- End Main Menu -->
<script type="text/javascript">
<!--

// init the menu
var RootMenu = new Spry.Widget.MenuBar("RootMenu", {imgDown:"images/SpryMenuBarDownHover.gif", imgRight:"images/SpryMenuBarRightHover.gif"});

//-->
</script>
